IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cms_sp_MediaDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[cms_sp_MediaDelete]
GO

CREATE PROCEDURE [dbo].[cms_sp_MediaDelete] 
 	@Id INT 
 AS 
 	DELETE  
 	FROM   Media 
 	WHERE  MediaId = @Id
GO